//
//  YXPhotoListView.m
//  跑跑快销
//
//  Created by 杨潇 on 14-5-5.
//  Copyright (c) 2014年 ylife. All rights reserved.
//

#import "YXPhotoListView.h"

@implementation YXPhotoListView
@synthesize tabView,takeAPictureBtn;

- (id)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        // Initialization code
        self.backgroundColor = [UIColor grayColor];
        tabView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, 320, [UIScreen mainScreen].bounds.size.height - STARTY - 40) style:UITableViewStylePlain];
        tabView.bounces = NO;
        tabView.backgroundColor = [UIColor clearColor];
//        tabView.separatorStyle = UITableViewCellSeparatorStyleNone;
        [self addSubview:tabView];
        
        takeAPictureBtn = [UIButton buttonWithType:UIButtonTypeSystem];
        takeAPictureBtn.backgroundColor = [UIColor whiteColor];
        takeAPictureBtn.frame = CGRectMake(0, tabView.frame.origin.y + tabView.frame.size.height, 320, 40);
        takeAPictureBtn.titleLabel.font = [UIFont systemFontOfSize:15];
        [takeAPictureBtn setTitle:@"拍照" forState:UIControlStateNormal];
        [self addSubview:takeAPictureBtn];
    }
    return self;
}

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect
{
    // Drawing code
}
*/

@end
